<?php
/**
 * Smart Library - Smart Framework
 * http://smart-framework.highet.eu
 *
 * @category   SmartL
 * @package    SmartL_Zend
 * @subpackage Controller
 * @copyright  Copyright (c) 2005-2008 Smart Framework team - Stepan Sindelar, Vojtech Vit
 * @license    http://www.opensource.org/licenses/bsd-license.php	New BSD License
 */

/**
 * @see Zend_Controller_Action_Helper_Redirector
 */
require_once 'Zend/Controller/Action/Helper/Url.php';

/**
 * @see SmartL_Zend_View_Helper_Url
 */
require_once 'SmartL/Zend/View/Helper/Url.php';

/**
 * @package SmartL_Zend
 * @subpackage Controller
 */
class SmartL_Zend_Controller_Action_Helper_Url extends Zend_Controller_Action_Helper_Url {
	/**
	 * Assembles a URL based on a given route
	 *
	 * This method will typically be used for more complex operations, as it
	 * ties into the route objects registered with the router.
	 *
	 * @param  array   $urlOptions Options passed to the assemble method of the Route object.
	 * @param  mixed   $name       The name of a Route to use. If null it will use the current Route
	 * @param  boolean $reset
	 * @param  boolean $encode
	 * @return string Url for the link href attribute.
	 */
	public function url($urlOptions = array(), $name = null, $reset = true, $encode = true) {
		$url = new SmartL_Zend_View_Helper_Url ( );
		return $url->url ( $urlOptions, $name, $reset, $encode );
	}
}